package com.joker.orange.service;

import com.joker.orange.domain.AppUpgrade;
import com.joker.orange.domain.vo.AppUpgradeVo;
import com.joker.orange.domain.bo.AppUpgradeBo;
import com.joker.common.core.page.TableDataInfo;
import com.joker.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 升级配置Service接口
 *
 * @author Joker
 * @date 2024-07-08
 */
public interface IAppUpgradeService {

    /**
     * 查询升级配置
     */
    AppUpgradeVo queryById(Long id);

    /**
     * 查询升级配置列表
     */
    TableDataInfo<AppUpgradeVo> queryPageList(AppUpgradeBo bo, PageQuery pageQuery);

    /**
     * 查询升级配置列表
     */
    List<AppUpgradeVo> queryList(AppUpgradeBo bo);

    /**
     * 新增升级配置
     */
    Boolean insertByBo(AppUpgradeBo bo);

    /**
     * 修改升级配置
     */
    Boolean updateByBo(AppUpgradeBo bo);

    /**
     * 校验并批量删除升级配置信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
